﻿using HCMS.Entities.Base;
using Microsoft.EntityFrameworkCore;
using Volo.Abp.Data;
using Volo.Abp.EntityFrameworkCore;

namespace HCMS.Repositories.Base
{
    /// <summary>
    /// 基础模块 连接池
    /// </summary>
    [ConnectionStringName("Base")]
    public class BaseDbContext :
        AbpDbContext<BaseDbContext>
    {
        public BaseDbContext(DbContextOptions<BaseDbContext> options)
            : base(options)
        {

        }

        #region 注册实体
        /// <summary>
        /// 系统 配置
        /// </summary>
        public DbSet<SystemConfig> SystemConfig { get; set; }

        /// <summary>
        /// 系统 字典
        /// </summary>
        public DbSet<SystemDictionary> SystemDictionary { get; set; }

        /// <summary>
        /// 公告 系统
        /// </summary>
        public DbSet<Notice> Notice { get; set; }

        /// <summary>
        /// 公告 接收 对象
        /// </summary>
        public DbSet<NoticeReceive> NoticeReceive { get; set; }

        /// <summary>
        /// 行政区划
        /// </summary>
        public DbSet<SystemArea> SystemArea { get; set; }

        /// <summary>
        /// 网站前端监控 - 异常日志
        /// </summary>
        public DbSet<FrontEndErrorLogs> FrontEndErrorLogs { get; set; }

        /// <summary>
        /// 敏感词
        /// </summary>
        public DbSet<SensitiveWords> SensitiveWords { get; set; }
        #endregion
    }
}